'use strict';

stareal
    .controller("SettingController", function ($scope, $api,$lazyLoader,localStorageService) {
        $scope.hideBtn=false;
       $scope.logout = function () {
           localStorageService.set('token',null);
           // var url = window.location.href;
           // var hash = url.substring(0,url.indexOf('#')+2)
           _czc.push(["_trackEvent",'h5-登录-退出','退出','查看','','outLogin']);
           window.location.href='#/main/login/'
       }
        var ua = window.navigator.userAgent.toLowerCase();
        if (ua.match(/MicroMessenger/i) == 'micromessenger'){
            $scope.hideBtn=true;
        }
    });